<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!--引用CW标签  -->
<%@ taglib uri="/WEB-INF/taglib/cw" prefix="CW"%>
<!--引用struts标签  -->
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>css/en/edit.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=basePath%>js/commons/common_edit.js"></script>
</head>
<body>
	<jsp:include page="../../common/loadingPage.jsp" />
	<form action="shop/updateAplay.action" name="actionForm" id="actionForm" method="post">
		<input name="upType" type="hidden" value="<s:property value="upType"/>"/>
		<input name="shopId" type="hidden" value="<s:property value="shopId"/>"/>
		<!-- 页面头 -->
		<div class="pageheader">
			<!-- 操作按钮 -->
			<div class="pageheadercontent">
				<div class="toolbar">
					<div class="toolbarright">
						<s:if test='upType=="add"'>
							<!-- <input class="okbtn" name="_submit" id="_submit" type="button" value="保存并下一步" onclick="__submit()">
							<input class="okbtn" type="button" value="跳过" onclick="_next()"> -->
							<input class="okbtn" name="_submit" id="_submit" type="button" value="完成" onclick="__submit()">
						</s:if>
						<s:else>
							<input class="okbtn" name="_submit" id="_submit" type="button" value="OK" onclick="__submit()"> 
						</s:else>
					</div>
				</div>
			</div>
		</div>
		<!-- 编辑 -->
		<div class="writetblbox">
			<table class="writetbl">
				<tr>
					<td colspan="2" class="trTitle">银联信息</td>
				</tr>
				<tr>
					<th>银行：</th>
					<td><input name="shopData.bank_name" type="text" value="<s:property value="shopData.bank_name" />"></td>
				</tr>
				<tr>
					<th>用户名：</th>
					<td><input name="shopData.bank_user" type="text" value="<s:property value="shopData.bank_user" />"></td>
				</tr>
				<tr>
					<th>银行账号：</th>
					<td><input name="shopData.bank_account" type="text" value="<s:property value="shopData.bank_account" />"></td>
				</tr>
			</table>
		</div>
	</form>
	<span class="_height"></span>
	<script type="text/javascript">
		$(document).ready(function() {
			$('#actionForm').validate({
				rules : {
			        "shopData.bank_user" : {
						maxlength : 64
					},
				    "shopData.bank_name" : {
				    	maxlength : 128
					},
					"shopData.bank_account" : {
						number : true,
						maxlength: 128
					}
				}
			});
		});
		function __submit(){
			if($("#actionForm").valid()){
				$("#loadingdiv").show();
				document.actionForm.submit();
			}
		}
		function __next(){
			document.actionForm.action="<%=basePath%>shop/gotoModifyCftImg.action";
			document.actionForm.submit();
		}
	</script>
</body>
</html>
